ltbConftitleDeploy={
	[1]={s_name="平原",s_resName="shourenyingdi1"},
	[2]={s_name="山地",s_resName="qianzhenshilin1"},
	[3]={s_name="墓地",s_resName="mudifengge1"},
	[4]={s_name="幽暗右",s_resName="youanyou1"},
	[5]={s_name="部落前哨",s_resName="buluoqianshao1"},
	[6]={s_name="联盟新手城",s_resName="lianmengxinshou"},
	[7]={s_name="洛克莫丹",s_resName="luokemodan"},
	[8]={s_name="欧盟第三",s_resName="oumeng3"},
	[9]={s_name="铁炉堡",s_resName="tielubao"},
	[10]={s_name="塔纳利斯",s_resName="tanalisi"},
	[11]={s_name="艾尔文森林",s_resName="aierwen"},
	[12]={s_name="阿拉希高地",s_resName="alaxi"},

}

ltbConftitleDeploy.get = function( sn )
	local liMax = table.maxn( ltbConftitleDeploy )
	for i = 1, liMax do
		if sn == ltbConftitleDeploy[i].sn then
			return ltbConftitleDeploy[i]
		end
	end

	return nil
end

ltbConftitleDeploy.getBy = function( ... )
	local ltbCondition = { }
	local ltbResult = { }

	local arg = { ... }
	for k, v in ipairs( arg ) do
		ltbCondition[k] = v
	end

	local liMax		= table.maxn( ltbCondition )
	local liMaxTb	= table.maxn( ltbConftitleDeploy )
	if liMax % 2 ~= 0 then
		return nil
	end

	local liIndex = 1
	for liIndex = 1, liMaxTb do
		local lbIsMatch = true

		for j = 1, liMax, 2 do
			local lstrKey = ltbCondition[j]
			local lVaule = ltbCondition[j+1]

			if ltbConftitleDeploy[liIndex][lstrKey] ~= lVaule then
				lbIsMatch = false
				break
			end
		end

		if lbIsMatch then
			return ltbConftitleDeploy[liIndex]
		end
	end

	return nil
end

ltbConftitleDeploy.findAll = function( )
	return ltbConftitleDeploy
end
